home *** CD-ROM | disk | FTP | other *** search
- SEARCH
-
- Looks for the specified text string in the files of the specified
- directories.
-
- Format
-
- SEARCH [FROM] {<name | pattern>} [SEARCH] <string | pattern> [ALL] [NONUM]
- [QUIET] [QUICK] [FILE] [PATTERN]
-
- Template
-
- FROM/M,SEARCH/A,ALL/S,NONUM/S,QUIET/S,QUICK/S,FILE/S,PATTERN/S
-
- Location
-
- C:
-
- SEARCH looks through all the files in the FROM directory for the string given
- in the SEARCH string. (The FROM and SEARCH keywords are optional.) If the ALL
- switch is given, SEARCH also looks through all the subdirectories of the FROM
- directory. SEARCH displays the name of the file being searched and any line
- that contains the text sought. You must place quotation marks around any
- search text containing a space. The search is not case-sensitive.
-
- The options are:
-
- NONUM
-
- Line numbers are not printed with the strings.
-
- QUIET
-
- Searches quietly; file names being searched are not displayed.
-
- QUICK
-
- Use a more compact output format.
-
- FILE
-
- Looks for a file by the specified name, rather than for a string in the file.
-
- PATTERN
-
- Uses pattern matching to search for the string.
-
- SEARCH leaves a 0 in the condition flag if the object is found, and a 5
- (WARN) otherwise. To abandon the search of the current file and continue to
- the next file, if any, press Ctrl+D. SEARCH is aborted when Ctrl+C is
- pressed.
-
- Examples
-
- 1> SEARCH DEVS: DOSDrivers globvec
- DOSDrivers (dir)
- PIPE..
- 6 GlobVec =-1
- PIPE.info
-
- 1> SEARCH utilities #?.info FILE
- Workbench:Utilities/Clock.info
- Workbench:Utilities/MultiView.info
-